package com.education.model;

import com.education.util.DateUtil;

import java.io.Serializable;
import java.util.Date;

/**
 * 报名实体类
 * 
 * @author
 *
 */
public class Register implements Serializable{
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    /**
     * 报名人员姓名
     */
    private String enterName;
    private String enterSex; //性别
    private String enterNation; //民族
    private Date  enterBirth;//出生日期Date格式
    private String enterBirthStr;//String格式
    private String enterIdcard;  //身份证号
    private String enterPhone;  //手机号
    private String enterGraduate; //毕业院校
    private String enterAddress; //家庭住址
    private String enterEducation;//学历
    private Date enterDate;//报名日期
    private String enterDateStr;
    private String regPhoto;  //本人照片
    private String regCertificate;  //毕业证书照片
    private Double enterPayMoney;//缴费金额

    private int majorId;//专业ID
    private int score;//初考成绩
    private int enterState;//初始状态为0，通过为1
    private String enterStateStr;


    public String getEnterStateStr() {
        return enterStateStr;
    }

    public void setEnterStateStr(String enterStateStr) {
        this.enterStateStr = enterStateStr;
    }

    public int getEnterState() {
        if(this.enterState==1){
            this.enterStateStr="审核通过,请及时缴费，获得学号与密码";
        }
        if(this.enterState == 0){
            this.enterStateStr="审核不通过";
        }
        return enterState;
    }

    public void setEnterState(int enterState) {
        this.enterState = enterState;
        if(this.enterState==1){
            this.enterStateStr="审核通过,请及时缴费，获得学号与密码";
        }
        if(this.enterState == 0){
           this.enterStateStr="审核不通过";
        }
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getMajorId() {
        return majorId;
    }

    public void setMajorId(int majorId) {
        this.majorId = majorId;
    }

    public String getEnterName() {
        return enterName;
    }

    public void setEnterName(String enterName) {
        this.enterName = enterName;
    }

    public String getEnterSex() {
        return enterSex;
    }

    public void setEnterSex(String enterSex) {
        this.enterSex = enterSex;
    }

    public String getEnterNation() {
        return enterNation;
    }

    public void setEnterNation(String enterNation) {
        this.enterNation = enterNation;
    }

    public Date getEnterBirth() {
        return enterBirth;
    }

    public void setEnterBirth(Date enterBirth) {
        this.enterBirth = enterBirth;
        this.enterBirthStr = DateUtil.formatDate(enterBirth, "yyyy-MM-dd");
    }

    public String getEnterBirthStr() {
        return enterBirthStr;
    }

    public void setEnterBirthStr(String enterBirthStr) {
        this.enterBirthStr = enterBirthStr;
    }

    public String getEnterIdcard() {
        return enterIdcard;
    }

    public void setEnterIdcard(String enterIdcard) {
        this.enterIdcard = enterIdcard;
    }

    public String getEnterPhone() {
        return enterPhone;
    }

    public void setEnterPhone(String enterPhone) {
        this.enterPhone = enterPhone;
    }

    public String getEnterGraduate() {
        return enterGraduate;
    }

    public void setEnterGraduate(String enterGraduate) {
        this.enterGraduate = enterGraduate;
    }

    public String getEnterAddress() {
        return enterAddress;
    }

    public void setEnterAddress(String enterAddress) {
        this.enterAddress = enterAddress;
    }

    public String getEnterEducation() {
        return enterEducation;
    }

    public void setEnterEducation(String enterEducation) {
        this.enterEducation = enterEducation;
    }

    public Date getEnterDate() {
        return enterDate;
    }

    public void setEnterDate(Date enterDate) {
        this.enterDate = enterDate;
        this.enterDateStr=DateUtil.formatDate(enterDate,"yyyy-MM-dd");
    }

    public String getEnterDateStr() {
        return enterDateStr;
    }

    public void setEnterDateStr(String enterDateStr) {
        this.enterDateStr = enterDateStr;
    }

    public String getRegPhoto() {
        return regPhoto;
    }

    public void setRegPhoto(String regPhoto) {
        this.regPhoto = regPhoto;
    }

    public String getRegCertificate() {
        return regCertificate;
    }

    public void setRegCertificate(String regCertificate) {
        this.regCertificate = regCertificate;
    }

    public Double getEnterPayMoney() {
        return enterPayMoney;
    }

    public void setEnterPayMoney(Double enterPayMoney) {
        this.enterPayMoney = enterPayMoney;
    }
}
